package com.yt.chapter1.service;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

@SuppressWarnings("serial")
public class TaskListenerImpl implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        String assignee = "张无忌";
        //指定个人任务
        delegateTask.setAssignee(assignee);

    }
}
